package com.ruoyi.project.emmanuel.cloud.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.project.emmanuel.cloud.domain.BusinessFileLink;
import com.ruoyi.project.emmanuel.cloud.domain.CloudFile;
import com.ruoyi.project.emmanuel.cloud.mapper.BusinessFileLinkMapper;
import com.ruoyi.project.emmanuel.cloud.mapper.CloudFileMapper;
import com.ruoyi.project.emmanuel.cloud.service.IBusinessFileLinkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.common.utils.text.Convert;

/**
 * 附件-业务关联关系表 Service业务层处理
 *
 * @author 一粒葡萄
 * @date 2025-01-05
 */
@Service
public class BusinessFileLinkServiceImpl extends ServiceImpl<BusinessFileLinkMapper, BusinessFileLink> implements IBusinessFileLinkService {

    @Autowired
    private BusinessFileLinkMapper businessFileLinkMapper;

    /**
     * 查询 附件-业务关联关系表
     *
     * @param id 附件-业务关联关系表 主键
     * @return 附件-业务关联关系表
     */
    @Override
    public BusinessFileLink selectBusinessFileLinkById(Long id) {
        return businessFileLinkMapper.selectBusinessFileLinkById(id);
    }

    /**
     * 查询 附件-业务关联关系表 列表
     *
     * @param businessFileLink 附件-业务关联关系表
     * @return 附件-业务关联关系表
     */
    @Override
    public List<BusinessFileLink> selectBusinessFileLinkList(BusinessFileLink businessFileLink) {
        return businessFileLinkMapper.selectBusinessFileLinkList(businessFileLink);
    }

    /**
     * 新增 附件-业务关联关系表
     *
     * @param businessFileLink 附件-业务关联关系表
     * @return 结果
     */
    @Override
    public int insertBusinessFileLink(BusinessFileLink businessFileLink) {
        return businessFileLinkMapper.insertBusinessFileLink(businessFileLink);
    }



    /**
     * 修改 附件-业务关联关系表
     *
     * @param businessFileLink 附件-业务关联关系表
     * @return 结果
     */
    @Override
    public int updateBusinessFileLink(BusinessFileLink businessFileLink) {
        return businessFileLinkMapper.updateBusinessFileLink(businessFileLink);
    }

    /**
     * 批量删除 附件-业务关联关系表
     *
     * @param ids 需要删除的 附件-业务关联关系表 主键
     * @return 结果
     */
    @Override
    public int deleteBusinessFileLinkByIds(String ids) {
        return businessFileLinkMapper.deleteBusinessFileLinkByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除 附件-业务关联关系表 信息
     *
     * @param id 附件-业务关联关系表 主键
     * @return 结果
     */
    @Override
    public int deleteBusinessFileLinkById(Long id) {
        return businessFileLinkMapper.deleteBusinessFileLinkById(id);
    }
}
